package com.example.myapplication.kotlin

import java.math.BigDecimal

/**
 * @author: rongfeng
 * @date: 2022/1/25
 * @description
 */
class Test {

    companion object {
        @JvmStatic
        fun main(args: Array<String>) {

            val num1 = 0.0
            val numTwo: String = BigDecimal( num1.toString()).stripTrailingZeros().toPlainString()

            println(numTwo)

        }


    }

}